#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  password.py
#       Author @  Huoty
#  Create date @  2016-03-31 10:07:51
#  Description @  
# *************************************************************

import urllib2
import sys
from pythonzenity import Password, Message

def main():
    password = "123456"
    user_input = Password(text="Enter Your password!")
    if user_input != password:
        sys.exit("Incorrect Password\n")

# Script starts from here

if __name__ == "__main__":
    main()
    kuanghy = Message(text="Password Verified successfully!")
    print kuanghy
    print "Checking Your Public Ip Address...\n"
    print "Your Public IP is"
    print urllib2.urlopen("http://konghy.cn").read
